#include <stdarg.h>

#include "main.h"

class cFileLog {
	FILE* output;
	char* path;
	
	int printTimeSig(); // prints the time signature to the file
	int printRaw(char *msg, bool newLineFlag = 0); // prints the string as it is

	int initialize(); // Opens the file and such
	int terminate(); // Closes the file and such
	
public:
	cFileLog();
	cFileLog(char *path) throw(int);
	~cFileLog();
	
	const char *getPath();
	int setPath(char* newPath);
	
	int print(char *msg);
	int printNoSig(char *msg); // print without the time signature
	
	int printStatus(int code, ...); // prints premeditated messages
};

	// Defining code words for printStatus
#define LOG_INVALID_HWND 1
#define LOG_NEW 2
